<?php

namespace App\Models\Cruise;

use App\Models\BaseModel;
use App\Models\Traits\KfSoftDeletes;
use App\Models\Traits\KfUid;
use Illuminate\Database\Eloquent\Relations\HasMany;

class CruiseProjectCategoryModel extends BaseModel
{
    use KfUid;
    use KfSoftDeletes;

    protected $table = 'cruise_project_category';

    protected $fillable = [
        'name',
        'pid',
        'sort',
        'type',
    ];

    public function childRel(): HasMany
    {
        return $this->hasMany(self::class, 'pid', 'id');
    }
}
